package com.venus.entity;

import java.io.Serializable;
import java.util.Set;

/**
 * Created by admin on 13/10/17.
 */
public class User implements Serializable {

	private static final long serialVersionUID = 4052249151315859585L;

	private long id;
	private String username;
	private String password;
	private String isUsed;

	private Set<String> roles;

	private Set<String> permissions;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getIsUsed() {
		return isUsed;
	}

	public void setIsUsed(String isUsed) {
		this.isUsed = isUsed;
	}

	public Set<String> getRoles() {
		return roles;
	}

	public void setRoles(Set<String> roles) {
		this.roles = roles;
	}

	public Set<String> getPermissions() {
		return permissions;
	}

	public void setPermissions(Set<String> permissions) {
		this.permissions = permissions;
	}

	@Override
	public String toString() {
		return "User{" +
				"id=" + id +
				", username='" + username + '\'' +
				", password='" + password + '\'' +
				", isUsed='" + isUsed + '\'' +
				", roles=" + roles +
				", permissions=" + permissions +
				'}';
	}
}
